{extend name='layout/base' /}
{block name='title'}上传图片{/block}
{block name='contentHeader'}
<h1>
    信息管理
    <small>上传图片</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 信息管理</a></li>
    <li class="active">上传图片</li>
</ol>
{/block}
{block name='content'}
<script src="__PLUGIN__/bootstrapvalidator/js/bootstrapValidator.min.js"></script>
<link rel="stylesheet" href="__PLUGIN__/bootstrapvalidator/css/bootstrapValidator.min.css">
<!-- Horizontal Form -->
<div class="box box-info" style="width:90%;margin: 0 auto;">
    <div class="box-header with-border">
        <h3 class="box-title">数据参数</h3>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    <form class="form-horizontal" action="" method="post" enctype="multipart/form-data">
        <div class="box-body">
            <div class="form-group">
                <label for="yw2" class="col-sm-2 control-label">说明</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="yw2" name="yw2" placeholder="说明">
                </div>
            </div>
            <div class="form-group">
                <label for="img" class="col-sm-2 control-label">上传图片</label>
                <div class="col-sm-10">
                    <input id="img" name="img" type="file"/>
                </div>
            </div>
        </div>
        <!-- /.box-body -->
        <div class="box-footer">
            <button type="reset" class="btn btn-default">重置</button>
            <button type="submit" class="btn btn-info pull-right">提交</button>
        </div>
        <!-- /.box-footer -->
    </form>
    <img src="{$imgPath}" />
</div>
{/block}